<?php $form=$this->beginWidget('bootstrap.widgets.TbActiveForm',array(
	'id'=>'banner-form',
	'enableAjaxValidation'=>false,
)); ?>

	<p class="help-block"> <span class="required">*</span> 为必填项.</p>

	<?php echo $form->errorSummary($model); ?>

	<?php echo $form->textFieldRow($model,'b_description',array('class'=>'span5','maxlength'=>500)); ?>

	<?php echo $form->textFieldRow($model,'b_link',array('class'=>'span5','maxlength'=>500)); ?>

	<?php echo $form->textFieldRow($model,'b_source',array('class'=>'span5','maxlength'=>500)); ?>
	<a class="btn btn-mini btn-danger"  onclick="openUploadImageBanner('Banner_b_source')">文件<?=!$model->b_source?"上传":"修改"?></a>图片像素780px*320px!
	<?php echo $form->textFieldRow($model,'b_order',array('class'=>'span1')); ?>


	<div class="form-actions">
		<?php $this->widget('bootstrap.widgets.TbButton', array(
			'buttonType'=>'submit',
			'type'=>'primary',
			'label'=>$model->isNewRecord ? '添加' : '修改',
		)); ?>
	</div>

<?php $this->endWidget(); ?>
